home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / pipeline / abacus / p_line / Calendar / ReadMe < prev    next >
Encoding:
Text File  |  1994-04-17  |  9.4 KB  |  184 lines

  1. %OP%VS4.13 (28-Apr-92), Gerald L Fitton, R4000 5966 9904 9938 
  2. %OP%DP0
  3. %OP%IRY
  4. %OP%PL0
  5. %OP%HM0
  6. %OP%FM0
  7. %OP%BM0
  8. %OP%LM4
  9. %OP%FS14000
  10. %OP%PT1
  11. %OP%PDPipeLine
  12. %OP%WC1026,2262,304,1748,0,0,0,0
  13. %CO:A,72,72%
  14. %C%An Everlasting Calendar
  15. %C%by Gerald L Fitton
  16. Keywords:
  17. Calendar Julian Gregorian Year Month Day Spreadsheet Fitton
  18.  
  19. Some History
  20.  
  21. Before the year 46 BC all twelve months of the year except February had 
  22. either 29 or 31 days.  February always had 28.  Most years had 355 days 
  23. but, every so often the priests or politicians added an extra month in 
  24. order to keep the seasons (particularly the Spring equinox) at or about 
  25. the same time of the year every year.  It was Julius Caesar who first 
  26. tried to bring some regularity to the calendar.  He ordered that the 
  27. year 46 BC should have 445 days (to bring the Spring equinox close to 
  28. the beginning of the Roman year ie in March) and that every year 
  29. thereafter should have either 365 or 366 days.  The extra day was to be 
  30. added to the 29 days of February in every fourth year to make it a 30 
  31. day month.  So you'll see it was thanks to Julius Caesar that we have a 
  32. variable length for February.  He chose February because it was the 
  33. last month of the year. The calendar was slightly modified by Augustus 
  34. Caesar (who followed Julius Caesar).  He renamed August after himself 
  35. (otherwise we might have had a Sexember) and added an extra day to his 
  36. month making August 31 days by reducing February to 28 days (except in 
  37. leap years).  Further, in an attempt to fine tune the Spring equinox, 
  38. he decreed that the first leap year should be 8 AD so that 4 AD and 
  39. earlier fourth years were not a leap years.  His calendar for 8 AD was 
  40. like that of any of our leap years today.
  41.  
  42. The Earth does not take exactly 365 days and 6 hours to go round the 
  43. Sun.  If it did then the Julian calendar would keep the seasons in 
  44. synchronism with utter perfection.  It takes about 11 minutes per year 
  45. less than this.  Over the centuries since 8 AD these eleven minutes per 
  46. year added up so that, by the year 1582, the seasons had slipped by 
  47. about ten days.  Pope Gregory XIII was more concerned about Easter 
  48. (which I think is on the first Sunday after the first full moon after 
  49. the Spring equinox) and the other movable church festivals than about 
  50. the farmers, and decreed that ten days should be dropped from the year 
  51. 1582.  The Roman Catholic countries adopted this Gregorian calendar 
  52. almost immediately but Protestant countries were slower to accept it.  
  53. In order to prevent a later problem with the accumulating 11 minutes 
  54. Pope Gregory ordered that century years such as 1800, 1900 and 2100 
  55. should not be leap years unless, like the years 2000 and 2400, they 
  56. were divisible by 400.
  57.  
  58. In Britain we continued to use the Julian calendar until 1752 by which 
  59. time the 'error' amounted to eleven days.  In Britain in the year 1752 
  60. the day after the 2nd September 1752 was the 14th September 1752.  This 
  61. unique September is produced by this spreadsheet.  Some countries were 
  62. even later than Britain in accepting the Gregorian calendar.  Bulgaria 
  63. adopted it in 1916 and the Soviet Union in 1918.  The Greek Orthodox 
  64. Church finally accepted it in 1924.  So you can see that for the years 
  65. 1582 to 1752 there was a discrepancy of 10 or 11 days between Britain 
  66. and the Catholic countries.  During that period this calendar 
  67. spreadsheet is correct only for those countries that continued to use 
  68. the Julian calendar.  If you have the knowledge and expertise to modify
  69. this spreadsheet for another country then let me know and I'll include 
  70. it on a future PipeDream 4 disc.
  71.  
  72.  
  73. How to use the spreadsheet
  74.  
  75. PipeDream 4 saves the position of the caret with the document.  This 
  76. calendar spreadsheet has been saved with the mouse in slot N2.  If the 
  77. caret is not in that cell then use the mouse to position it in cell N2.  
  78. This contains the year as 1991.  Type in another year, for example 
  79. 1066, and tap <Return>.  There will be a delay whilst the spreadsheet 
  80. recalculates.  The Battle of Hastings was on the 14th October 1066 and 
  81. you will see that it was a Saturday.  My History teacher had a theory 
  82. that all wars broke out at 3.00 pm on Sunday afternoons when everyone 
  83. had just got out of the pub!  We went to war with Germany on the
  84. 3rd September 1939.  I can't remember when Pearl Harbour was attacked 
  85. by the Japanese but I seem to remember that was a Sunday afternoon, 
  86. possibly the 7th December 1941 at about 3.00 pm.  The Spanish Armada 
  87. was on Friday the 19th July 1588.  My History teacher would have loved 
  88. to find out what day of the week the Bastille was stormed and there may 
  89. be some who want to know what day of the week the original St Swithan's 
  90. day was on.  Contributions to this discussion will be welcome, 
  91. particularly if you know the date of some important events.
  92.  
  93. Some people had a problem with this calendar using PipeDream 3 if they 
  94. used as their default brackets for negative numbers.  With brackets, 
  95. positive numbers have a trailing space after every number.  The space I 
  96. have allowed for the calendar dates is not wide enough to accept 
  97. brackets as the method of indicating negative numbers.  I believe (but 
  98. I'm not sure) that with PipeDream 4 the options are always saved with 
  99. the document.  If this is not the case and you see %PC% signs instead of 
  100. numbers then please change your default to negative signs (use <Ctrl O> 
  101. to open the options dialogue box window) and please let me know!
  102.  
  103.  
  104. How it works
  105.  
  106. Cell W6 contains a key formula that returns the day of the week 
  107. (numbers 0 to 6 representing Sunday to Saturday respectively) for the 
  108. 1st January of the year in cell N2.  Actually it's two slightly 
  109. different formulae, one for the years before 1752 and one for the years 
  110. after 1752; an 'if' is used to decide which formula is used.  The 
  111. formula uses the year entered into N2 as input and calculates the 
  112. number of days between a fixed date (eg 1st January in the year 1 AD) 
  113. and the year chosen (in cell N2) by counting 365 days per year plus an 
  114. extra day for every leap year.  This number of days is divided by 7 and 
  115. the remainder used to decide on what day of the week the 1st January 
  116. fell for our chosen (N2) year.  In cell X6 the date for the first 
  117. Sunday in January is calculated (using W6 as input).  A number between 
  118. 2 and 8 (inclusive) is returned.  The formula in V7 for the number of 
  119. days in February looks complicated but all it does is to work out 
  120. whether the year is a leap year or not and returns either 28 or 29 
  121. appropriately.
  122.  
  123. In the X column the date of the first Sunday of each month is returned 
  124. for all twelve months.  It is the values in this column which form the 
  125. input to the visible part of the calendar.  I don't know why exactly, 
  126. but, until I added in a 0.5 before using the function int (integer), I 
  127. occasionally got wrong values in PipeDream 3.  I haven't checked 
  128. whether the same problem arises in PipeDream 4.
  129.  
  130. Cell C9 contains the date of the first Sunday in January taken from X6.  
  131. By a process of adding 7s (eg cell D9 contains C9+7) the remaining 
  132. Sunday dates in January can be found.  An 'if' is used in the first 
  133. week of the month to avoid negative dates and, at the end of the month, 
  134. another 'if' is used to prevent values greater than the number of days 
  135. in the month appearing.  September is treated differently from the 
  136. other months.  The year is tested to see if it is 1752.  If not then 
  137. the standard formula is used, if the year is 1752 then the special 1752 
  138. values are entered.  Cell V14 (which contains the number of days in 
  139. September) also has an 'if' which tests whether N2 (the year) is 1752 
  140. or not.
  141.  
  142. I have to confess I made a bit of a mess of choosing the best way of 
  143. replicating each month so I have got rid of all the $ signs (which fix 
  144. the replication) in order to hide my embarrassment.  I got rid of the 
  145. $s by using <Ctrl>+BSE (search and replace) to replace the $ signs with 
  146. nothing.  So now you can't see what a mess I made of my choice of where 
  147. to put the $s!
  148.  
  149. Cell H5 contains a hidden error message triggered by an 'if' if you 
  150. enter a year before 5 AD.
  151.  
  152.  
  153. Customising
  154.  
  155. You can insert rows and columns with impunity.  All the cell references 
  156. change automatically.  Be careful about deleting rows, parts of rows or 
  157. columns.  Don't use the master copy!  You can add your own graphics etc 
  158. and print calendars for all your friends.  Finally you can use 
  159. 'Snapshot', <Ctrl>+BSS, (and then delete columns T to Y) to make a 
  160. simple calendar for a chosen year that can be customised without fear 
  161. of damaging any formula.
  162.  
  163.  
  164. Printing
  165.  
  166. Some people do have problems printing this calendar because the 
  167. columns T to Z cause a 'wrap around' and destroy the layout of the 
  168. first few months.  I could have taken the easy way out and completely 
  169. hidden columns T to Z by making them zero width.  Then nobody would 
  170. have printing problems but you might find that you can't open up the 
  171. 'missing' columns.
  172.  
  173. Anyway here is what I have done and how to fix it if the printing does 
  174. go awry for you.  Load the calendar and then double click on the 
  175. command file [ZeroWidth].  This reduces the width of all columns to the 
  176. right of S to zero width.  Your printing should be OK now.
  177.  
  178. I prefer to print out using Outline fonts rather than the PipeDream 
  179. printer drivers.  I suggest that you use a sans serif font such as 
  180. Acorn's Homerton.Medium (Helvetica) or Beebug's Vogue (Avant Guarde) 
  181. rather than one of the serifed fonts such as Trinity.Medium (Times) or 
  182. Paladin.Roman (Palatino).  You can get some interesting effects with 
  183. decorative fonts such as EFF's Hot Dog or Horror!
  184.